<%@ page language="java" isELIgnored="false" import="java.util.*" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<form id="taskForm" action="taskInfoAction!editTaskInfo.action" method="post">
		<TABLE cellSpacing=1 cellPadding=3 width="100%" border=0 class="tabg">
			<TBODY>
				<TR class="tr1">
					<TD colspan="4">抓取航线设置</TD>
				</TR>
				<TR class="tab">
					<TD width="10%" height="26" style="text-align: left" class="td1">配置描述：
					</TD>
					<TD colspan="3"><textarea style="width: 500px; resize: none;" rows="3" cols="50" name="remark"></textarea></TD>
				</TR>
				<TR class="tab">
					<TD height="26" style="text-align: left" class="td1">网站名称：</TD>
					<TD colspan="3">
						<select class="easyui-combobox" name="grabChannel" style="width: 150px;" id="grabChannel">
							<c:choose>
								<c:when test="${sourceVOList == null}">
								</c:when>
								<c:otherwise>
									<c:forEach var="item" items="${sourceVOList }">
										<option value="${item.name}" <c:if test="${item.name=='中国南方航空官网' }">selected='selected'</c:if>>${item.name}</option>
									</c:forEach>
								</c:otherwise>
							</c:choose>
						</select> 
						<!--  <br><input type="text" name="grabChannel" id="grabChannel"/> --> 
						<span style="color: #ff0000">*</span>
					</TD>
				</TR>
				<TR class="tab">
					<TD height="26" width="10%" style="text-align: left" class="td1">航&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;段：</TD>
					<TD width="40%">
						<div style='margin: 10px auto;'>
							<span>从 </span> 
							<input id='fromCity' name="fromCity" type='text' value='' style="width: 102px" /> 
							<span>到</span> 
							<input id='toCity' name="toCity" type='text' value='' style="width: 102px" />
							<span style="color: #ff0000">*</span><br />
						</div>
					</TD>
					<TD width="10%" style="text-align: left" class="td1">航班日期：</TD>
					<TD width="40%">
						<span>未来 </span> 
						<input type="text" maxlength="10" style="width: 30px" id="formDateNumber" value="" name="formDateNumber"> 
						<span>到</span> <input type="text" maxlength="10" style="width: 30px" id="toDateNumber" value="" name="toDateNumber"> 
						<span>天的航班</span> 
						<span style="color: #ff0000">*</span>
					</TD>
				</TR>
				<TR class="tab">
					<TD height="26" style="text-align: left" class="td1">抓取时间段：</TD>
					<TD>
						<span>从 </span> 
						<input type="text" style="width: 100px" id="validityFromStr" value="" name="validityFromStr" 
						onClick="WdatePicker()"> 
						<span>到</span> 
						<input type="text" style="width: 100px" id="validityToStr" value="" name="validityToStr" 
						onClick="WdatePicker()"> 
						<span style="color: #ff0000">*</span>
					</TD>
					<TD style="text-align: left" class="td1">抓取频率：</TD>
					<TD>
						<span>每</span> 
						<input type="text" style="width: 30px" id="frequency" value="" name="frequency"> 
						<span>小时抓去一次</span>
						<span style="color: #ff0000">*</span>
					</TD>
				</TR>
				<TR class="tab">
				<TD style="text-align: left" class="td1">是否抓取往返数据：</TD>
					<TD>
						<select id="isReturn" name="isReturn">
						<option value="1">是</option>
						<option value="0">否</option>
						</select>
					</TD>
					
					<TD style="text-align: left" class="td1">抓取往返天数：</TD>
					<TD>
						<span>从起飞日往后</span> 
						<input type="text" style="width: 30px" id="returnDateScope" value="" name="returnDateScope"> 
						<span>天</span>
						<span style="color: #ff0000">*</span>
					</TD>
				</tr>
				<TR class="tab">
					<TD height="26" colspan="4" align="center">
						<input type="button" name="Submit222" value="保存" id="Submit222" style="width: 80px;cursor: pointer; cursor: hand;" 
						onclick="javascript:checkForm();">
					</TD>
				</TR>
			</TBODY>
		</TABLE>
	</form>
</body>
</html>